#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<list>
using namespace std;

int main()
{
	list<int> l1(100,10);
	l1.push_back(3);
	l1.push_back(6);
	l1.push_back(7);
	l1.push_back(35);
	l1.push_back(38);
	list<int>::iterator it =l1.begin();
	/*for (auto it : l1)
	{
		cout << *it << endl;
	}*/
	while (it != l1.end())
	{
		cout << *it << endl;
		it++;
	}
	return  0;
}